package com.zixun.repository;

import com.zixun.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;



public interface UserRepository extends JpaRepository<User,Long>,JpaSpecificationExecutor<User> {

    @Query("select u from User u where u.id = :id")
    User findById(@Param("id")Integer id);
}
